package com.zf.zffencheng.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zf.zffencheng.dao.HardwarePartnerAccountDao;
import com.zf.zffencheng.model.pojo.HardwarePartnerAccount;
import com.zf.zffencheng.service.HardwarePartnerAccountService;
import org.springframework.stereotype.Service;

/**
 * ClassName: HardwarePartnerAccountServiceImpl <br/>
 * Description:  <br/>
 * date: 2021/5/31 17:30<br/>
 *
 * @author william <br/>
 */
@Service
public class HardwarePartnerAccountServiceImpl extends ServiceImpl<HardwarePartnerAccountDao, HardwarePartnerAccount>
implements HardwarePartnerAccountService{
    @Override
    public HardwarePartnerAccount getByHardwareId(Integer id) {
        QueryWrapper<HardwarePartnerAccount> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("hardwarePartnerId", id);
        return getOne(queryWrapper, false);
    }
}
